package com.yanyeori.framework.security.bo;

import com.yanyeori.framework.core.constant.BaseConstant;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * t_interface_limiter
 *
 * @author chenkuan 2020/11/20
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class InterfaceLimiterBO {

    private String backUrl;
    private String ip;
    private Double permitsPer;
    private Integer enabled;

    public String getKey() {
        //ip|backUrl
        return ip + BaseConstant.SIGN_VERTICAL + backUrl;
    }
}
